home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re Modal Dialogs- Part I < prev    next >
Encoding:
Internet Message Format  |  1996-07-16  |  1.1 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Modal Dialogs- Part I
  2. Sent:        7/15/96 11:16 AM
  3. Received:    7/15/96 11:31 AM
  4. From:        Mary Boetcher, Mary_Boetcher@quickmail.apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Mail*LinkĀ® SMTP               RE>Modal Dialogs: Part I
  9.  
  10. >I followed the example of ODFForm's Password dialog to create a text entry
  11. >dialog. The action of the dialog when the "OK" button is hit is to post an
  12. >undoable command.
  13. >
  14. >So the question is, is it OK to pass the dialog's frame to the FW_CCommand
  15. >constructor? The frame will be destroyed when the dialog closes, right? But
  16. >this seems to work - I guess I'm wondering what that parameter and the
  17. >fFrame data member of FW_CCommand are all about. Comments?
  18.  
  19. The fFrame data member of a command represents the display frame that is affected by the change. In the case of a dialog you shouldn't pass the dialog frame to the command unless the command is undoable while the dialog is open. In your case fFrame is apparently not used in your UndoIt and RedoIt methods, so you're getting away with it.
  20.  
  21. Mary Boetcher
  22. ODF person
  23.  
  24.